package edu.cs.networkmonitor.application;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class Resources {
	private static BufferedImage addIcon;
	private static BufferedImage failIcon;
	private static BufferedImage passIcon;
	private static BufferedImage stopIcon;
	private static BufferedImage scanIcon;
	private static BufferedImage startIcon;
	private static BufferedImage removeIcon;
	private static BufferedImage logo;
	private static BufferedImage titleIcon;
	private static BufferedImage startGreen;
	
	public static void loadResources() {
		try {
			addIcon = ImageIO.read(new File("images/add.png"));
			failIcon = ImageIO.read(new File("images/red.png"));
			passIcon = ImageIO.read(new File("images/green.png"));
			stopIcon = ImageIO.read(new File("images/stop.png"));
			scanIcon = ImageIO.read(new File("images/scan.gif"));
			startIcon = ImageIO.read(new File("images/start.png"));
			removeIcon = ImageIO.read(new File("images/remove.png"));
			logo = ImageIO.read(new File("images/logo.png"));
			titleIcon = ImageIO.read(new File("images/logo.png"));
			startGreen = ImageIO.read(new File("images/startgreen.png"));
		} catch (IOException e) {
			System.out.println("Error loading resources. ");
		}
	}
	
	public static BufferedImage getAddIcon() {
		return addIcon;
	}
	
	public static BufferedImage getLogo() {
		return logo;
	}

	public static BufferedImage getFailIcon() {
		return failIcon;
	}

	public static BufferedImage getPassIcon() {
		return passIcon;
	}

	public static BufferedImage getStopIcon() {
		return stopIcon;
	}

	public static BufferedImage getScanIcon() {
		return scanIcon;
	}

	public static BufferedImage getStartIcon() {
		return startIcon;
	}

	public static BufferedImage getRemoveIcon() {
		return removeIcon;
	}

	public static BufferedImage getTitleIcon() {
		return titleIcon;
	}

	public static BufferedImage getGreenStartIcon() {
		// TODO Auto-generated method stub
		return startGreen;
	}
}
